<template>
	<navigator class="goods-item u-m-t-20 u-p-40">
		<u-image class="u-skeleton-fillet" width="100%" height="300rpx"
			:src="info.cover_url"></u-image>
		<view class="title u-line-1 u-skeleton-rect">{{info.title ? info.title : '商品名称'}}</view>
		<view class="u-flex u-row-between">
			<view class="price u-skeleton-rect">¥ {{info.price}}</view>
			<view class="sales u-skeleton-rect">销量：{{info.sales}}</view>
		</view>
	</navigator>
</template>

<script>
	export default {
		name:"goods-card",
		props: {
			info: {
				type: Object,
				default: () => ({})
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.goods-item {
		box-shadow: 0 12rpx 20rpx 0 rgba(0, 0, 0, 0.1);
		.title {
			margin: 10rpx 0;
			font-weight: 500;
			font-size: 32rpx;
			width: 100%;
		}

		.price {
			color: red;
			width: 40%;
		}

		.sales {
			color: #888;
			width: 40%;
		}
	}
</style>
